<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>


<script>
    document.write("<p align='center'>");

    for(var i=1;i<=10;i++){
        for(var j=1;j<=2*i-1;j++){
            document.write("*");
        }
        document.write("<br>");
    }

    document.write("</p>");
</script>
</body>
</html>